<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>发表专题</title>
		<%@include file="/common/common.jsp"%>
		<script type="text/javascript">
			function sub(){
			
		         var title = document.getElementById('title').value;
                 if(title==""||title==null){
                     alert("请输入标题。");
                     document.form1.title.focus();
                     return false;
                 }

                 var keywords=document.getElementById('keywords').value;
                 if(keywords==""||keywords==null){
                     alert("请输入关键字。");
                     document.form1.keywords.focus();
                     return false;
                 }
          }
		</script>
	</head>
	<body style="background-image: none;">
		<div class="content-box-header">

			<h3>
				发表专题
			</h3>
		</div>

		<!-- End #tab1 -->

		<div class="tab-content" id="tab2">

			<fieldset>
				<form name="form1" action="topicIssue" method="post"
					enctype="multipart/form-data" onsubmit="return sub()">
					<p>
						<label style="color: red;">
							专题标题：
						</label>
						<input class="text-input small-input" type="text" id="title"
							name="title" />
						<span class="input-notification attention png_bg">输入专题的标题信息</span>
						<!-- Classes for input-notification: success, error, information, attention -->
						<br />
					</p>
					<p>
						<label>
							&nbsp;&nbsp;&nbsp;关键字：
						</label>
						<input class="text-input Medium-input" type="text" id="keywords"
							name="keywords" />
						<span class="input-notification information png_bg">专题的关键字
							信息</span>
						<!-- Classes for input-notification: success, error, information, attention -->
						<br />
					</p>
					<p>
						<input type="hidden" name="username" value="${sessionScope.USER.userName }"/>
					</p>

					<p>
						<label style="color: red;">
							首页显示：
						</label>
						<select id="status" name="status">
							<option value="0">
								否
							</option>
							<option value="1">
								是
							</option>
						</select>
						<span class="input-notification attention png_bg">设置专题是否在首页显示</span>
						<br />
					</p>


					<p>
						<label style="color: red;">
							专题图片：
						</label>
						请选择要上传的文件：
						<input class="multi" maxlength="1" type="file" id="articlefile"
							name="upload" />
						<br />
					</p>

					<p>
						<label style="color: red;">
							专题描述：
						</label>
						<fck:editor instanceName="describe" width="700" height="350">
						</fck:editor>

						<br />
					</p>
					<p>
						<input class="button" type="submit" value="发表" />
					</p>
				</form>
			</fieldset>

			<div class="clear"></div>
		</div>
		<div id="footer">
			<small> &#169; Copyright 2011 | Freedoms | <a href="#">Top</a>
			</small>
		</div>
	</body>
</html>
